package com.zeyi.blog.social.gtiee;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.zeyi.blog.social.ThirdUser;
import lombok.Data;
import lombok.ToString;

/**
 * @author 黎先森
 */
@JsonIgnoreProperties(ignoreUnknown = true)
@Data
@ToString
public class GiteeUser implements ThirdUser {
    private Integer id;
    private String name;
    private String avatarUrl;

    @Override
    public String getId() {
        return id.toString();
    }

    @Override
    public String getUsername() {
        return name;
    }

    @Override
    public String getAvatar() {
        return avatarUrl;
    }

    @Override
    public String getProviderId() {
        return "gitee";
    }
}
